<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:170px;">
				<label style="width:50px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}" style="width:80px;"/>
			</li>
			<li style="width:100px;">
                <select name="stype" class="combox"> 
                    <option value="all" {if $stype=='all'||empty($stype)}selected="selected"{/if}>全部</option>
                    <option value="user_id" {if $stype=='user_id'}selected="selected"{/if}>会员ID</option>
                    <option value="username" {if $stype=='username'}selected="selected"{/if}>会员账户</option>
					<option value="agent_id" {if $stype=='agent_id'}selected="selected"{/if}>专营商ID</option>
                </select>
                <input type="hidden" name="sfield_name" value="user_id,,realname,agent_id" />
            </li>
           <!-- <li style="width:380px;">
                <label style="width:60px;">会员区域：</label>
                <select name="vesting_province"   ref="city_order" refUrl="{:U('Areauser/area')}&id={value}&level=2" class="combox">
                    <option value="all">请选择省份...</option>
                    <volist name="Area_list" id="vo">
                        {if $vo['parentid'] == 0}
                        <option value="{$vo['id']}" {if $vesting_province==$vo['id']}selected="selected"{/if}>{$vo['name']}</option>
                        {/if}
                    </volist>
                  </select>
                  <select name="vesting_city" ref="area_order" refUrl="{:U('Areauser/area')}&id={value}&level=3" id="city_order" class="combox">
                    <option value="all">请选择城市...</option>
                    {if !empty($vesting_city)}
                    <volist name="Area_list" id="vo">
                        {if $vo['parentid'] == $vesting_province}
                        <option value="{$vo['id']}" {if $vesting_city==$vo['id']}selected="selected"{/if}>{$vo['name']}</option>
                        {/if}
                    </volist>
                    {/if}
                  </select>
                  <select name="vesting_area" id="area_order" class="combox">
                    <option value="all">请选择区域...</option>
                    {if !empty($vesting_area)}
                    <volist name="Area_list" id="vo">
                        {if $vo['parentid'] == $vesting_city}
                        <option value="{$vo['id']}" {if $vesting_area==$vo['id']}selected="selected"{/if}>{$vo['name']}</option>
                        {/if}
                    </volist>
                    {/if}
                  </select>
            </li>-->
			
			<li style="width:180px;">
                <label style="width:60px;">开始时间：</label>
				<input name="ktime" style="width:80px;" class="date" type="text" value="<php>if(!empty($ktime)&&$ktime>0){</php>{$ktime|date='Y-m-d',###}<php>}</php>"/>
			</li>
			<li style="width:180px;">
			    <label style="width:60px;">结束时间：</label>
				<input name="jtime" style="width:80px;" class="date" type="text" value="<php>if(!empty($jtime)&&$jtime>0){</php>{$jtime|date='Y-m-d',###}<php>}</php>"/>
            </li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>

		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		</ul>
	</div>
	<div id="user_list">
	<table class="table" layoutH="110">
		<thead>
			<tr>
				<th width="30"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width="150" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>订单编号</th>
				<th width="150" orderField="agent_id" {if $orderField=='agent_id'}class="{$orderDirection}"{/if}>专营商ID</th>
				<th width="150" orderField="vesting_province" {if $orderField=='vesting_province'}class="{$orderDirection}"{/if}>金额</th>										
				<th width="180" orderField="mobile" {if $orderField=='mobile'}class="{$orderDirection}"{/if}>状态</th>
				<th width="150" orderField="starttime" {if $orderField=='starttime'}class="{$orderDirection}"{/if}>会员账户</th>
				<th width="180" orderField="starttime" {if $orderField=='starttime'}class="{$orderDirection}"{/if}>时间</th>
			</tr>
		</thead>
		<tbody>
		<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td><a title="查看" target="dialog" style="color:blue;" width="830" height="680" rel="Order_detail_{$vo['id']}" href="{:U('Order/detail',array('id'=>$vo['id']))}">{$vo['sn']}</a></td>
				<td><a title="查看" target="dialog" style="color:blue;" width="630" height="590" rel="User_detail_{$vo['agent_id']}" href="{:U('User/detail',array('id'=>$vo['agent_id']))}">{$vo[agent_id]}</a></td>
				<td>{$vo['amount']/100}</a></td>
				<td>{if $vo[status] == 0} 未审核 {elseif $vo[status] == 1} 已确认{elseif $vo[status] == 3}备货中{elseif $vo[status] == 5}已发货{elseif $vo[status] == 8}已签收{elseif $vo[status] == 10}已经完成 {/if}
					{if $vo[pay_status] == 0}已支付{elseif $vo[pay_status] == 1}支付中{elseif $vo[pay_status] == 2}已支付 {/if}|
					{if $vo[shipping_status] == 0}未发货{elseif $vo[shipping_status] == 1}已出库{elseif $vo[shipping_status] == 2}已收货{elseif $vo[shipping_status] == 3}申请换货{elseif $vo[shipping_status] == 4} 已换货{/if}
				</td>
				<td><a title="查看" target="dialog" style="color:blue;" width="630" height="590" rel="User_detail_{$vo['user_id']}" href="{:U('User/detail',array('id'=>$vo['user_id']))}">{$vo['username']}({$vo['user_id']})</a></td>
				<td>{$vo['add_time']|date='Y-m-d H:m:s',###}</td>
			</tr>
		</volist>
		</tbody>
	</table>
	</div>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
				<option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
				<option value="66" {if $numPerPage==66}selected="selected"{/if}>66</option>
				<option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
				<option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
	</div>
</div>